<?
session_start();
include('conn.php');
$qry1 = "SELECT * from employeemast where status=0 order by empid desc";

$qry = mysql_query($qry1);
$data = array();
$i=1;
while($rows = mysql_fetch_array($qry))
{
	$data[] = array("empid"=> $rows['empid'],
        			"name" => $rows['empname']
				     );
}
echo json_encode($data);
?>